package com.healthcloud.service;

import com.healthcloud.exception.BusinessException;

/**
 * Created by xiam on 2015/6/26.
 */
public interface MobileCodeService {

    /**
     * 生成一条验证码
     * @param mobile
     * @param useType
     * @return
     */
    String generateMobileCode(String mobile, Integer useType);

    /**
     * 验证手机短信验证码
     * @param mobile
     * @param code
     * @param useType
     */
    void validate(String mobile, String code, Integer useType) throws BusinessException;
}
